home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / lib_test / test_general2.e < prev    next >
Encoding:
Text File  |  1996-05-02  |  699 b   |  38 lines

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_GENERAL2
  5.  
  6. creation {ANY}
  7.    make
  8.    
  9. feature {ANY}
  10.    
  11.    
  12.    make is
  13.       local
  14.      d1, d2: DICTIONARY[STRING,STRING];
  15.       do
  16.      !!d1.make;
  17.      d2 := clone(d1);
  18.      is_true(d2 /= Void);
  19.      is_true(d2 /= d1);
  20.      is_true(d1.same_type(d2));
  21.       end;
  22.    
  23.    is_true(b: BOOLEAN) is
  24.       do
  25.      cpt := cpt + 1;
  26.      if not b then
  27.         std_output.put_string("TEST_GENERAL2: ERROR Test # ");
  28.         std_output.put_integer(cpt);
  29.         std_output.put_string("%N");
  30.      else
  31.         -- std_output.put_string("Yes%N");
  32.      end;
  33.       end;
  34.    
  35.    cpt: INTEGER;
  36.    
  37. end -- class TEST_GENERAL2
  38.